<template>
	<div>Error Page {{ error }}</div>
	<div>
		<button @click="goHome">home</button>
	</div>
</template>

<script setup>
	const props = defineProps({
		error: Object,
	})

	const goHome = () => {
		// 清除错误, 并且重定向到首页
		clearError({ redirect: '/' })
	}
</script>

<style></style>
